package com.cskaoyan.controller.wx.nj;

import com.cskaoyan.service.wx.nj.CskaoyanmallFootprintService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.wx.nj.WXFootVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WXFootController {
    @Autowired
    CskaoyanmallFootprintService cskaoyanmallFootprintService;

    ///wx/footprint/list?page=1&size=10
    @RequestMapping("wx/footprint/list")
    public BaseRespVo list(Integer page, Integer size) {
        Integer userid = 1;
        WXFootVo wxFootVo = cskaoyanmallFootprintService.query(page,size,userid);
        return BaseRespVo.ok(wxFootVo);
    }

    @RequestMapping("wx/footprint/delete")
    public BaseRespVo delete(Integer id){
        cskaoyanmallFootprintService.deleteByPrimaryKey(id);
        return BaseRespVo.ok();

    }


}
